package com.tps.cloud.response;

import lombok.Getter;

@Getter
public enum ResultCode {

    /* 成功状态码 */

    SUCCESS(200, "成功"),

    /* 错误状态码 */
    NOT_FOUND(404, "请求的资源不存在"),

    ERROR(500, "服务器内部错误"),

    PARAMETER_EXCEPTION(501, "请求参数校验异常");

    private final Integer code;
    private final String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
